<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>生成普通黑白二维码</title>
</head>
<body>
<h2>表单</h2>
<table border="2" width="500">
    <tr>
        <th>编号</th>
        <th>检验性质</th>
        <th>检验内容</th>
    </tr>
    <tr>
        <td>工序:10</td>
        <td>定性</td>
        <td>反光情况</td>
    </tr>
</table>

<h2>表单</h2>
<form action="" method="post" name="Testfrom">
    用户名：<input type="text" name="Username">
    密码：<input type="possword" name=pwd>
    备注:<textarea name="textarea" rows="5" cols="50"></textarea>
    <input type="submit" value="提交">
</form>
<h2>二维码</h2>
<!--url：<input type="text" id="url">-->
url:<textarea type="text" id="url"></textarea>
<button onclick="generateQRcode()">生成二维码</button>
<br>

<img id="image"/>
<script>
    function generateQRcode() {
        let url = document.getElementById("url").value;
        let i = document.getElementById("image");
        i.src = "http://127.0.0.1:8080/qrcode/create?url=" + url;
    }
</script>
</body>
</html>